using System;
using System.Collections.Generic;
using System.Text;

namespace GReporting.Core.PagingAlgorithm
{
    public class ColumnHeaderBuilder : AbstractPageBuilder
    {
        public override void Build(PageBuilderContext context)
        {
            context.CurrentBand = context.Report.Layout.columnHeader;
            if (isPrint(context.CurrentBand, context.Engine))
            {
                int printBandHeight = PrintBand(context);
                context.Y += printBandHeight;
                context.PrintHeight += printBandHeight;
            }
            AbstractPageBuilder builder = new DataBuilder();
            builder.Build(context);
        }
    }
}
